Clean up stock-icons
authorMatthias Clasen <mclasen@redhat.com>
Tue, 30 Aug 2011 14:48:04 +0000 (10:48 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 30 Aug 2011 15:28:53 +0000 (11:28 -0400)
We copy them all in srcdir != builddir builds, so just
nuke the entire directory in that case.

gtk/Makefile.am

index f6d6ee1fa4148217bd31564133a2c65a6f9550c5..b96e3033cbd3cddcdcb140b41e57138aac9434af 100644 (file)
@@ -852,7 +852,12 @@ gtk_extra_sources =                                \
 #
 # setup GTK+ sources and their dependencies
 #
-MAINTAINERCLEANFILES = $(gtk_built_sources) $(stamp_files) $(GENERATED_ICONS) stock-icons/icon-theme.cache
+MAINTAINERCLEANFILES = \
+       $(gtk_built_sources)                    \
+       $(stamp_files)                          \
+       $(GENERATED_ICONS)                      \
+       stock-icons/icon-theme.cache
+
 EXTRA_HEADERS =
 EXTRA_DIST += $(gtk_private_h_sources) $(gtk_extra_sources)
 EXTRA_DIST += $(gtk_built_sources)
@@ -996,6 +1001,7 @@ uninstall-local: uninstall-ms-lib uninstall-def-file uninstall-mac-key-theme
 distclean-local:
        if test $(srcdir) != .; then \
          rm -f $(MAINTAINERCLEANFILES); \
+         rm -rf stock-icons; \
        fi
 
 DEPS = libgtk-3.la $(top_builddir)/gdk/libgdk-3.la